package com.syh.niceweibo.common.infos;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * userInfo:uid，screen_name，profile_image_url
 * weiboInfo：weiboId，content，created_at，original_pic
 * @author shenyh
 *
 */
public class HotWeiboInfo implements Parcelable {

	public UserInfo userInfo;

	public WeiboInfo weiboInfo;

	@Override
	public int describeContents() {
		return 0;
	}

	public HotWeiboInfo(){
		
	}
	
	public String getWaterFallsImage(){
		return weiboInfo!=null?weiboInfo.bmiddle_pic:null;
	}
	
	public HotWeiboInfo(Parcel parcel) {
		userInfo = parcel.readParcelable(getClass().getClassLoader());
		weiboInfo = parcel.readParcelable(getClass().getClassLoader());
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeParcelable(userInfo, flags);
		dest.writeParcelable(weiboInfo, flags);
	}

	/**
	 * Parcelable.Creator that instantiates Notification objects
	 */
	public static final Parcelable.Creator<WeiboInfo> CREATOR = new Parcelable.Creator<WeiboInfo>() {
		public WeiboInfo createFromParcel(Parcel parcel) {
			return new WeiboInfo(parcel);
		}

		public WeiboInfo[] newArray(int size) {
			return new WeiboInfo[size];
		}
	};
}
